﻿using System.Configuration;
using System.Data;
using System.Windows;
using WpfApp3.Services;
using WpfApp3.Views;

namespace WpfApp3
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : PrismApplication
    {
        // 设置启动窗口
        protected override Window CreateShell()
        {
            //return Container.Resolve<LoginView>();

            return Container.Resolve<MainView>();
        }


        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            // 注册导航
            containerRegistry.RegisterForNavigation<LoginView>();
            //containerRegistry.RegisterForNavigation<MainView>();

            containerRegistry.RegisterForNavigation<AAAView>();
            containerRegistry.RegisterForNavigation<BBBView>();
            containerRegistry.RegisterForNavigation<CCCView>();
            containerRegistry.RegisterForNavigation<DDDView>();
            containerRegistry.RegisterForNavigation<EEEView>();
            containerRegistry.RegisterForNavigation<FFFView>();
            containerRegistry.RegisterForNavigation<GGGView>();
            containerRegistry.RegisterForNavigation<HHHView>();
        }
    }
}